#define _CRT_SECURE_NO_WARNINGS 1
#include"date.h"
int main()
{
	/*date d1(2024,8,16);
	date d2(2024,7,15);*/
	/*if ((d1.operator>=(d2)))
	{
		cout << 1 << endl;
	}
	else
	{
		cout << 0 << endl;
	}*/
	//d1.operator+=(50);
	/*d1.operator+(50);*/
	//d1 += 50;
	//d1.print();
	//date d2 = d1 + 50;
	//d2.print();
	//d1.operator-=(-50);
	//d1.print();
	//date d2 = d1 - 50;
	//d2.print();
	//if ((d1.operator<(d2)))
	//{
	//	cout << 1 << endl;
	//}
	//else
	//{
	//	cout << 0 << endl;
	//}
	//d1++;
	//d1.print();
	//++d1;
	//d1.print();;
	//cout <<d1-d2 << endl;
	date d1, d2;
	cin >> d1 >> d2;
	cout << d1-d2 << endl;
	return 0;
}